<?php 
class caPropelTreePluginRouting {

  public static function listenToRoutingLoadConfigurationEvent( sfEvent $oEvent ) {
    $oRouting = $oEvent->getSubject();
    $oRouting->prependRoute( 'ca_get_all_tree' , new sfRoute( '/caPropelTree/get-all-tree/', array( 'module' => 'caPropelTree' , 'action' => 'getAllTree' ) ) );
    $oRouting->prependRoute( 'ca_get_tree' , new sfRoute( '/caPropelTree/get-tree/:node_id', array( 'module' => 'caPropelTree' , 'action' => 'getTreeChildren' ) ) );
    $oRouting->prependRoute( 'ca_change_culture' , new sfRoute( '/caPropelTree/change/:culture', array( 'module' => 'caPropelTree' , 'action' => 'changeCulture' ) ) );
    $oRouting->prependRoute( 'ca_get_culture_main_menu' , new sfRoute( '/caPropelTree/get-cuture-main-menu', array( 'module' => 'caPropelTree' , 'action' => 'getCutureMainMenu' ) ) );
    $oRouting->prependRoute( 'ca_rename_node' , new sfRoute( '/caPropelTree/rename/:node_id', array( 'module' => 'caPropelTree' , 'action' => 'renameNode' ) ) );
    $oRouting->prependRoute( 'ca_delete_node' , new sfRoute( '/caPropelTree/delete/:node_id', array( 'module' => 'caPropelTree' , 'action' => 'deleteNode' ) ) );
    $oRouting->prependRoute( 'ca_add_node' , new sfRoute( '/caPropelTree/add/:parent_node_id', array( 'module' => 'caPropelTree' , 'action' => 'addNodeToParent' ) ) );
    $oRouting->prependRoute( 'ca_push_node' , new sfRoute( '/caPropelTree/push/:node_id', array( 'module' => 'caPropelTree' , 'action' => 'pushNode' ) ) );
    $oRouting->prependRoute( 'ca_put_before_node' , new sfRoute( '/caPropelTree/put-before/:node_id', array( 'module' => 'caPropelTree' , 'action' => 'putBeforeNode' ) ) );
    $oRouting->prependRoute( 'ca_put_after_node' , new sfRoute( '/caPropelTree/put-after/:node_id', array( 'module' => 'caPropelTree' , 'action' => 'putAfterNode' ) ) );

  }

}